<?php
class LogFactory{
	
	private static $_instance;
	private $logPath;
	private $logger;
	
	public function __construct()
	{
		$this->logPath = ConfigFactory::getInstance()->getConfig()->application->applog;
		$this->logger = new Zend_Log(new Zend_Log_Writer_Stream($this->logPath));
	}
	
	public static function getInstance() {
		if(is_null(self::$_instance)){
			self::$_instance = new LogFactory();
		}
		return self::$_instance;
	}
	
	
	public function getLogger()
	{
		return $this->logger;
	}
	
	
	
	
}